#include<stdio.h>

typedef struct Node {
	int data;
	struct Node* next;
}Node;

void print_info(Node* p);

int main_043(int argc, char* argv[]) {
	Node n1;	
	Node n2;	
	Node n3;
	int a, b, c;
	scanf_s("%d", &a);
	scanf_s("%d", &b);
	scanf_s("%d", &c);
	n1.data = a;
	n2.data = b;
	n3.data = c;
	n1.next = &n2;
	n2.next = &n3;
	n3.next = NULL;
	print_info(&n1);
	return 0;
}

void print_info(Node* p) {
	while (p != NULL) {
		printf("%d\n", p->data);
		p = p->next;
	}
}